package com.hsnn.medstgmini.model;

public enum MessageUserType {

	SJ(1, "发件箱"), CG(0, "草稿箱"), FJ(2, "收件箱");

	private int key;
	private String value;

	private MessageUserType(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public static String getName(int key) {
		for (MessageUserType status : MessageUserType.values()) {
			if (status.key == key) {
				return status.value;
			}
		}
		return "";
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
}